import unittest

import time

class TestTimeMethods(unittest.TestCase):

    def test_strftime(self):
        self.assertEqual(time.strftime('%Y%m%d'), time.strftime('%Y%m%d'))
        # time.strftime('%Y%m%d') 输出结果示例：'20201026'

if __name__ == '__main__':
    unittest.main()
